using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace server
{
    public partial class SetPath : Form
    {
        public string path;
        public string mypath
        {
            set
            {
                path = value;
            }
            get
            {
                return path;
            }

        }
        public SetPath()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {

                TextBox1.Text = folderBrowserDialog1.SelectedPath;
                
            }

        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            path = TextBox1.Text;
            TextBox1.SaveFile("root_path.txt", RichTextBoxStreamType.PlainText); 
            this.Close();
        }

        private void SetPath_Load(object sender, EventArgs e)
        {

        }
    }
}